package com.itheima.test2;

public class Person {

    private String name;
    private int age;


    //喂养狗
    public void keepPet(Dog dog, String something) {
        dog.eat(something);
    }

    //喂养猫
    public void keepPet(Cat cat, String something) {
        cat.eat(something);
    }

}
